﻿[[title="项目报告",pagesize="",orderby="",condition=""]]
<script language="javascript" type="text/javascript">
    function window.onload() {
        wmsCommon.setEditDivStyle("tabDiv", 0.99);
    }
    function changeWindowSize() {
        wmsCommon.setEditDivStyle("tabDiv", 0.99);
    }
    $(function () {

        var dismembermentData = eval(wmsCommon.execCommand(String.format("sys(#ProjectdismembermentManager.GetDismembermentByReportGUID('{0}'))", "$request.QueryString.get('repotGuid')")));
        wmsCommon.LoadItem(dismembermentData);
        $(":checkbox").attr("disabled", "false");
        $("textArea").attr("disabled", "false");
        wmsBiz.dealWithTextAreas($("textArea"));
        var row = $(".rowNum");
        for (var i = 0; i < row.length; i++) {
            $(row[i]).html(i + 1);
        }
    });
  
</script>
<table class="DisplayArea" id="MainTableInfo" cellpadding="0" cellspacing="0" align="center"
    style="width: 100%; height: 100%">
    <tr>
        <td class="headmiddle" style="height: 26px">
            #if($request.QueryString.get_Item("opt")=="1") <span id="LableTitle">新增项目报告</span>
            #else <span id="LableTitle2">查看项目报告</span> #end
        </td>
    </tr>
    <tr>
        <td class="centermiddle">
            <table id="contenttb" class="tableInput">
                <tr>
                     <td class="add-item" style="height: 25px; width: 80px; background: #f3f9fd">
                        $projectQuestion.Columns.get_Item("projectName").DisplayName
                    </td>
                    <td class="add-data" style="width: 40%">
                        $projectQuestion.Rows.get_Item(0).get_Item("projectName").Render()
                    </td>
                    <td class="add-item" style="height: 25px; width: 80px; background: #f3f9fd">
                        $projectQuestion.Columns.get_Item("mscrmName").DisplayName
                    </td>
                    <td class="add-data" style="width: 40%">
                        $projectQuestion.Rows.get_Item(0).get_Item("mscrmName").Render()
                    </td>
                 </tr>
                 <tr>
                     <td class="add-item" style="height: 25px; width: 80px; background: #f3f9fd">
                        $projectQuestion.Columns.get_Item("projectPersonName").DisplayName
                    </td>
                    <td class="add-data" style="width: 40%">
                        $projectQuestion.Rows.get_Item(0).get_Item("projectPersonName").Render()
                    </td>
                    <td class="add-item" style="height: 25px; width: 80px; background: #f3f9fd">
                        $projectQuestion.Columns.get_Item("projectReportCycle").DisplayName
                    </td>
                    <td class="add-data" style="width: 40%">
                        $projectQuestion.Rows.get_Item(0).get_Item("projectReportCycle").Render()&nbsp;至&nbsp;$projectQuestion.Rows.get_Item(0).get_Item("reportCycleEnd").Render()
                    </td>
                 </tr>
                 <tr>
                     <td class="add-item" style="height: 25px; width: 80px; background: #f3f9fd">
                        $projectQuestion.Columns.get_Item("questionDesc").DisplayName
                    </td>
                    <td class="add-data" style="width: 40%" colspan=3>
                        $projectQuestion.Rows.get_Item(0).get_Item("questionDesc").Render()
                    </td>
                    
                 </tr>
                <tr style="display: none">
                    <td colspan="4">
                        $projectQuestion.Rows.get_Item(0).get_Item("repotGuid").Render("defaultValue=$dataContext.Evaluate('sys(#CommonFunction.CreateGUID())');")
                        $projectQuestion.Rows.get_Item(0).get_Item("cteateNo").Render("defaultValue=$session.get_Item('userNo');")
                        $projectQuestion.Rows.get_Item(0).get_Item("commitDate").Render("defaultValue=$dataContext.GetDate();")
                        $projectQuestion.Rows.get_Item(0).get_Item("projectGUID").Render('defaultValue=$request.QueryString.get("projectGUID");')
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td colspan="4" valign="top">
                        <!--tab  标签列表  -->
                     
                        <div id="tabDiv">
                            <!-- 项目报告-->
                            <div id="tab1" style=" margin-top: 0;  text-align:left;width: 100%; padding-left:5px;">
                                 <div style="border: 1px solid #95B0CB; margin-top: 10px;  width:75px;   font-size:13px; font-weight:bold; padding-top:3px; padding-left:3px; padding-bottom:3px;">项目报告</div>
                            
                                    <table class="tblList" style="border-collapse: collapse; color: #95B0CB"
                                        border="0" rules="all" cellspacing="0">
                                    <tr>
                                            
                                          
                                            <th>
分解项名称
                                            </th>
                                                <th>
执行过程描述
                                            </th>
                                             <th>
完成状态
                                            </th>
                                                <th>
分解项名称
                                            </th>
                                                <th>
执行过程描述
                                            </th>
                                             <th>
完成状态
                                            </th>
                                        </tr>
                                      
                                    </table>
                              
                                <!-- 存在问题及解决方案-->
                                    <div style="border: 1px solid #95B0CB; margin-top: 10px; width:135px;   font-size:13px; font-weight:bold; padding-top:3px; padding-left:3px; padding-bottom:3px;">存在问题及解决方案</div>
                             
                            <div id="tab22"  style="border: 1px solid #95B0CB; margin-top: 0; text-align:center; width: 100%;">
                                <table class="tblList" id="projectSolution" style="border-collapse: collapse; color: #95B0CB"
                                    border="0" rules="all" cellspacing="0">
                                    <tr>
                                       <th>
                                            序号
                                        </th> 
                                        <th>
                                            $projectQuestion.Childs.get_Item(0).Columns.get_Item("qusetionDes").DisplayName
                                        </th>
                                        <th>
                                            $projectQuestion.Childs.get_Item(0).Columns.get_Item("needAttention").DisplayName
                                        </th>
                                           <th>
                                            $projectQuestion.Childs.get_Item(0).Columns.get_Item("questionStateName").DisplayName
                                        </th>   <th>
                                            $projectQuestion.Childs.get_Item(0).Columns.get_Item("questionTypeName").DisplayName
                                        </th>  
                                         <th>
                                            $projectQuestion.Childs.get_Item(0).Columns.get_Item("userNo").DisplayName
                                        </th>
                                         <th>
                                            $projectQuestion.Childs.get_Item(0).Columns.get_Item("expectSolveTime").DisplayName
                                        </th>
                                        <th>
                                            $projectQuestion.Childs.get_Item(0).Columns.get_Item("advise").DisplayName
                                        </th>
                                        <th>
                                            $projectQuestion.Childs.get_Item(0).Columns.get_Item("upfileGuid").DisplayName
                                        </th>
                                    </tr>
                                    #foreach($row in $projectQuestion.Childs.get_Item(0).Rows) [[projectSolution{]]
                                    <tr onmouseout="wmsCommon.onMouseOut(this)" onmouseover="wmsCommon.onMouseOver(this)">
                                        <td align="center" style="width: 40px">
                                           <span class="rowNum"></span>
                                        </td>
                                        <td>
                                            $row.get_Item("qusetionDes").Render()
                                        </td>
                                        <td>
                                            $row.get_Item("ifNeedAttention").Render()
                                        </td>
                                          <td>
                                            $row.get_Item("questionStateName").Render()
                                        </td>
                                          <td>
                                            $row.get_Item("questionTypeName").Render()
                                        </td>
                                          <td>
                                            $row.get_Item("userNo").Render()
                                        </td>
                                         <td>
                                            $row.get_Item("expectSolveTime").Render()
                                        </td>
                                        <td>
                                            $row.get_Item("advise").Render()
                                        </td>
                                        <td style="text-align: center">
                                             <nobr>
                              <a href='javascript:void(0)'  onclick='wmsCommon.uploadFileView("$row.get_Item("upfileGuid")")' >
              相关文档
             </a>
                              </nobr>
                                        </td>
                                    </tr>
                                    [[}]] #end
                                </table>
                            </div>
                            </div>
                            
                        </div>
                    </td>
                </tr>
            </table>
            <!-- edit content end-->
        </td>
    </tr>
    <tr style="height: 20px;">
        <td colspan="4" valign="middle" style="text-align: center; height: 20px;">
            <div style="height: 20px; background-color: rgb(233, 231, 215);">
                $render.RenderButton(" text=关闭; displayType=button ; actionType=close; clientMethod=wmsCommon.closeWin();")
            </div>
        </td>
    </tr>
</table>
